package com.sinodata.bsm.center.engine.event.correlation;

import java.util.*;
import org.apache.commons.lang.StringUtils;
import com.sinodata.bsm.common.vo.*;

public class ECPHandlerModel {
    public ECPHandlerModel(String express, List<EventCorrelationLink> list) {
        String[] es = StringUtils.split("&&");
        for (int i = 0; i < es.length; i++) {
            for (int j = 0; j < list.size(); j++) {
                if (list.get(j).getSerialNumber().equals(es[i])) {
                    eventTypes.add(list.get(j).getEventTypeLinkId());
                }
            }
        }
    }

    private Set<Long> eventTypes = new HashSet<Long>();

}
